Dynomotion

Group: DynoMotion Message: 13764 From: David Strip Date: 10/3/2016
Subject: Displaying spindle angle in DRO
I have an axis that I'm using like a spindle - it rotates continuously at constant velocity. The axis has an encoder and the DRO in KMotionCNC displays an every-increasing value. Is there a setting that will cause the display to show only values between 0 and 360°, resetting every time it passes the zero mark?

Thanks

--
Group: DynoMotion Message: 13765 From: Tom Kerekes Date: 10/3/2016
Subject: Re: Displaying spindle angle in DRO

Hi David,

No there isn't.  How would you expect that it would work?  To effect the display only?  For example say you started at zero and commanded A3601.   The display would show 1 degree.  Now you command A2.  Would you expect it to move +1 degree?  Or -3599 degrees?

What problem does the ever increasing value cause for you?

Regards

TK



On 10/3/2016 3:26 PM, David Strip David@... [DynoMotion] wrote:
 

I have an axis that I'm using like a spindle - it rotates continuously at constant velocity. The axis has an encoder and the DRO in KMotionCNC displays an every-increasing value. Is there a setting that will cause the display to show only values between 0 and 360°, resetting every time it passes the zero mark?

Thanks

--

Group: DynoMotion Message: 13772 From: David Strip Date: 10/5/2016
Subject: Re: Displaying spindle angle in DRO
On 10/3/2016 10:03 PM, Tom Kerekes tk@... [DynoMotion] wrote:

Hi David,

No there isn't.  How would you expect that it would work?  To effect the display only?  For example say you started at zero and commanded A3601.   The display would show 1 degree.  Now you command A2.  Would you expect it to move +1 degree?  Or -3599 degrees?

What problem does the ever increasing value cause for you?

Regards

TK


The easiest way to think about our application is to think of it as a rotary table that's used to index a part. In that case, 361° is the same as 1° in terms of position and function. In practice we would never command 3601°, but I suppose even if we did and the current position was 0°, I'd want the axis to rotate 1°, not 3601°. Somewhat more complex would be that if the table was at 1° and is commanded to 359°, I would want it to rotate 2° in the negative direction, not 358° in the positive.

However, given that we are generating the gcode programmatically, the answer is to write the gcode so that we never wrap around if we don't want numbers bigger than 360° to appear.

--